package cn.tedu._02notice.base.config;



import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.tags.Tag;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


import java.util.Arrays;
import java.util.List;


@Configuration
public class Knife4jConfig {
    @Bean
    public OpenAPI customOpenAPI() {
        return new OpenAPI()
                .tags(getTagsOrdered());
    }
        private List<Tag> getTagsOrdered(){
        return Arrays.asList(
                new Tag().name("01-资讯管理模块").description("资讯管理模块"),
                new Tag().name("02-用户管理模块").description("用户管理模块")
        );
    }

}
